Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Promise-returning method and hooks #179

Merged
merged 1 commit into from
Feb 13, 2015
Merged

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Feb 13, 2015

If a shared method or a hook handler returns a duck-typed promise, i.e. an object with a then method, then the invocation waits until the promise is fulfilled or rejected.

Connect strongloop/loopback#418

/to @raymondfeng @ritch please review

If a shared method or a hook handler returns a duck-typed promise,
i.e. an object with a `then` method, then the invocation waits
until the promise is fulfilled or rejected.
@raymondfeng
Copy link
Member

LGTM.

bajtos added a commit that referenced this pull request Feb 13, 2015
Support Promise-returning method and hooks
@bajtos bajtos merged commit 5cf7855 into master Feb 13, 2015
@bajtos bajtos removed the #review label Feb 13, 2015
@bajtos bajtos deleted the feature/promises branch February 13, 2015 17:55
@raymondfeng raymondfeng assigned bajtos and unassigned raymondfeng Feb 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants